package com.pragati.jjcet.alumni;

import com.google.appengine.api.datastore.Key;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Alumni {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
    @Persistent
    private String firstName;
    @Persistent
    private String lastName;
    @Persistent
    private String cellPhone;
    @Persistent
    private String batch;
    @Persistent
    private Date birthDate;
    @Persistent
    private String approved;

    public Alumni(String firstName, String lastName, String cellPhone, String batch,String approved, Date birthDate) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.cellPhone = cellPhone;
        this.batch = batch;
        this.approved = approved;
        this.birthDate = birthDate;
    }

    // Accessors for the fields.  JDO doesn't use these, but your application does.

    public Key getKey() {
        return key;
    }

    public String getFirstName() {
        return firstName;
    } 
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    } 

    public String getLastName() {
        return lastName;
    } 
    public void setLastName(String lastName) {
        this.lastName = lastName;
    } 
    public String getCellPhone() {
        return cellPhone;
    } 
    public void setCellPhone(String cellPhone) {
        this.cellPhone = cellPhone;
    } 
    
    public String getBatch() {
        return batch;
    } 
    public void setBatch(String batch) {
        this.batch = batch;
    } 
    
    public Date getBirthDate() {
        return birthDate;
    } 
    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

	public void setApproved(String approved) {
		this.approved = approved;
	}

	public String getApproved() {
		return approved;
	} 
}